package cn.edu.zjut.medlinebackend.mapper;

import cn.edu.zjut.medlinebackend.model.Favorite;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86182
* @description 针对表【favorite】的数据库操作Mapper
* @createDate 2024-01-05 15:22:45
* @Entity cn.edu.zjut.medlinebackend.model.Favorite
*/
public interface FavoriteMapper extends BaseMapper<Favorite> {
    boolean deleteFavoriteFile(@Param("fileName") String fileName, @Param("user_id") Integer userId);

    List<Favorite> getAllByUserid(Integer userId);

    Favorite seleteFavoriteFile(@Param("fileName") String fileName, @Param("user_id") Integer userId);
}




